home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / objects / r3morph.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  3.9 KB  |  144 lines

  1.  
  2. // JavaScript wrapper for r3morph.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_MORPHING_H = 1;
  7. include("real/objects/r3aniobj.js")
  8.  
  9.  
  10. var R3CLID_MORPHING = 1498;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Run morphing.
  16. // Virtual method
  17.  
  18. R3MORPHINGM_EXECUTE = 1498000;
  19.  
  20. function mR3MORPHINGM_EXECUTE() {
  21.   DoA(this.r3obj, 1498000, 0, R3TID_INTEGER, 0);
  22. }
  23.  
  24. // Description: Reset knot values to uniform distribution.
  25.  
  26. R3MORPHINGM_RESETKNOTS = 1498001;
  27.  
  28. function mR3MORPHINGM_RESETKNOTS() {
  29.   DoA(this.r3obj, 1498001, 0, R3TID_INTEGER, 0);
  30. }
  31.  
  32. // Description: Set given knot value
  33. // Returns: Boolean, true if succeeded
  34. // p1: Integer, index of the knot to be set
  35. // p3: Number, new time in seconds    
  36.  
  37. R3MORPHINGM_SETKNOT = 1498002;
  38.  
  39. function mR3MORPHINGM_SETKNOT(p1, p3) {
  40.   return   DoA2(this.r3obj, 1498002, p1, R3TID_INTEGER, 0, p3, R3TID_FLOAT, 0);
  41. }
  42.  
  43. // Description: Get given knot value
  44. // Returns: Boolean, true if succeeded
  45. // p1: Integer, index of the knot to be set
  46. // p3: Number, new time in seconds    
  47.  
  48. R3MORPHINGM_GETKNOT = 1498003;
  49.  
  50. function mR3MORPHINGM_GETKNOT(p1, p3) {
  51.   return   DoA2(this.r3obj, 1498003, p1, R3TID_INTEGER, 0, p3, R3TID_FLOAT, 0);
  52. }
  53.  
  54.  
  55.  
  56.  
  57. R3MORPHINGA_Closed = 1498500;
  58. function SetR3MORPHINGA_Closed(value) {
  59.   R3Set(this.r3obj, R3MORPHINGA_Closed, value, R3TID_BOOLEAN, 0); 
  60. }
  61.  
  62. function GetR3MORPHINGA_Closed() {
  63.   return R3Get(this.r3obj, R3MORPHINGA_Closed, R3TID_BOOLEAN, 0); 
  64. }
  65.  
  66. R3MORPHINGA_Interpolation = 1498501;
  67. function SetR3MORPHINGA_Interpolation(value) {
  68.   R3Set(this.r3obj, R3MORPHINGA_Interpolation, value, R3TID_INTEGER, 0); 
  69. }
  70.  
  71. function GetR3MORPHINGA_Interpolation() {
  72.   return R3Get(this.r3obj, R3MORPHINGA_Interpolation, R3TID_INTEGER, 0); 
  73. }
  74.  
  75. R3MORPHINGA_KnotCount = 1498502;
  76. function SetR3MORPHINGA_KnotCount(value) {
  77.   R3Set(this.r3obj, R3MORPHINGA_KnotCount, value, R3TID_INTEGER, 0); 
  78. }
  79.  
  80. function GetR3MORPHINGA_KnotCount() {
  81.   return R3Get(this.r3obj, R3MORPHINGA_KnotCount, R3TID_INTEGER, 0); 
  82. }
  83.  
  84. R3MORPHINGA_Knots = 1498503;
  85. function SetR3MORPHINGA_Knots(value) {
  86.   R3Set(this.r3obj, R3MORPHINGA_Knots, value, R3TID_FLOAT, R3TNF_ARRAY); 
  87. }
  88.  
  89. function GetR3MORPHINGA_Knots() {
  90.   return R3Get(this.r3obj, R3MORPHINGA_Knots, R3TID_FLOAT, R3TNF_ARRAY); 
  91. }
  92.  
  93. R3MORPHINGA_AbsKnots = 1498504;
  94. function SetR3MORPHINGA_AbsKnots(value) {
  95.   R3Set(this.r3obj, R3MORPHINGA_AbsKnots, value, R3TID_FLOAT, R3TNF_ARRAY); 
  96. }
  97.  
  98. function GetR3MORPHINGA_AbsKnots() {
  99.   return R3Get(this.r3obj, R3MORPHINGA_AbsKnots, R3TID_FLOAT, R3TNF_ARRAY); 
  100. }
  101.  
  102. var R3MORPHINGA_KnotId = 1498505; // Integer
  103. R3MORPHINGA_TargetID = 1226235278;
  104. function SetR3MORPHINGA_TargetID(value) {
  105.   R3Set(this.r3obj, R3MORPHINGA_TargetID, value, R3TID_INTEGER, 0); 
  106. }
  107.  
  108. function GetR3MORPHINGA_TargetID() {
  109.   return R3Get(this.r3obj, R3MORPHINGA_TargetID, R3TID_INTEGER, 0); 
  110. }
  111.  
  112. var R3MORPHIT_CUBIC = 0;
  113. var R3MORPHIT_LINEAR = 1;
  114. var R3MORPHIT_DISCRETE = 2;
  115.  
  116.  
  117. function r3Morphing () { 
  118.    this.base = r3God;
  119.    if(arguments.length) {
  120.       this.base(R3CLID_MORPHING, arguments);
  121.    }
  122.    // Methods
  123.    this.EXECUTE=mR3MORPHINGM_EXECUTE;
  124.    this.RESETKNOTS=mR3MORPHINGM_RESETKNOTS;
  125.    this.SETKNOT=mR3MORPHINGM_SETKNOT;
  126.    this.GETKNOT=mR3MORPHINGM_GETKNOT;
  127.  
  128.    // Attributes
  129.    this.GetClosed=GetR3MORPHINGA_Closed;
  130.    this.SetClosed=SetR3MORPHINGA_Closed;
  131.    this.GetInterpolation=GetR3MORPHINGA_Interpolation;
  132.    this.SetInterpolation=SetR3MORPHINGA_Interpolation;
  133.    this.GetKnotCount=GetR3MORPHINGA_KnotCount;
  134.    this.SetKnotCount=SetR3MORPHINGA_KnotCount;
  135.    this.GetKnots=GetR3MORPHINGA_Knots;
  136.    this.SetKnots=SetR3MORPHINGA_Knots;
  137.    this.GetAbsKnots=GetR3MORPHINGA_AbsKnots;
  138.    this.SetAbsKnots=SetR3MORPHINGA_AbsKnots;
  139.    this.GetTargetID=GetR3MORPHINGA_TargetID;
  140.    this.SetTargetID=SetR3MORPHINGA_TargetID;
  141. }
  142.  
  143. r3Morphing.prototype=new r3Aniobj;
  144. // r3morph.h_H